package org.jeecg.cn.edu.scau.vm.container.controller;

import org.jeecg.cn.edu.scau.vm.container.domain.VmContainerUsage;
import org.jeecg.cn.edu.scau.vm.container.service.VmContainerUsageService;
import org.jeecg.common.api.vo.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * 机时使用情况相关接口
 */
@RequestMapping("/vm/vmContainerUsage")
@RestController
public class VmContainerUsageController {
    @Resource
    private VmContainerUsageService vmContainerUsageService;

    @GetMapping("/usageInfo")
    public Result<VmContainerUsage> getUserUsage() {
        return vmContainerUsageService.getLoginUserUsage();
    }


}
